function main(require, module, exports) {
  const { foo } = require('./foo.js')
  console.log(foo)
  console.log('main')
}

function foo(require, module, exports) {
  'use strict'
  Object.defineProperty(exports, '__esModule', {
    value: true,
  })
  exports.foo = void 0
  var foo = (exports.foo = 'foo')
}
const map1 = {
  './foo.js': foo,
  './main.js': main,
}
const map = {
  './main.js': function (require, module, exports) {
    'use strict'

    var _foo = require('./foo.js')
    console.log(_foo.foo)
  },
  './foo.js': function (require, module, exports) {
    'use strict'

    Object.defineProperty(exports, '__esModule', {
      value: true,
    })
    exports.foo = void 0
    var foo = (exports.foo = 'foo')
  },
}
;(function (map) {
  function require(path) {
    const fn = map[path]
    const module = {
      exports: {},
    }
    fn(require, module, module.exports)
    return module.exports
  }
  require('./main.js')
})(map)
